<form action="/sales/ajaxbutton?op=doSetGoodsClearState"  method="post" name="batchendorderST" id="batchendorderST">
<style type="text/css">
	.st1 tbody  tr td{padding:3px 3px;};
</style>
<table cellpadding="0" cellspacing="0" border="1" class="stdtable st1">
 <thead>
  <tr class="child_subject tit">
    <th class="head1">NO.</th>
    <th class="head1">商品编号</th>
    <th class="head1">商品名称</th>
    <th class="head1">仓库</th>
     <th class="head1">仓位</th>
    <th class="head1">盘点库存</th>
    <th class="head1">成本价</th>
    <th class="head1">小计成本</th>
    <th class="head1">清仓价格</th>
<!--<th class="head1">滞销损耗金额</th>-->
  </tr>
 </thead>
  {{foreach from=$needstore item=li key=key}}
  <tr>
    <td>{{$key+1}}</td>
  <td><a href="/product/productlist?other={{$li.sku}}&filtertype=skuc" target="_blank" style="text-decoration:none;color:black;">{{$li.sku}}</a></td>
    <td>{{$li.goods_name|getstr:12:0}}</td>
    <td>{{$li.storagename}}</td>
     <td>{{$li.positions}}</td>
    <td>{{$li.confirmstock}}</td>
    <td>{{$li.cost_price}}</td>

    <td>{{$li.stcostprice}}</td>
    <td>{{$li.discount}}</td>
    <!-- <td>{{$li.unsold_discount}}</td>-->
  </tr>
  {{/foreach}}
</table>
<div align="left" style="padding-top:10px;padding-left:80px;line-height:23px;">
<strong>库存盘点：</strong>
{{$info.confirm_stock_user}} <strong> &nbsp;盘点时间</strong>：{{$info.confirm_stock_time}} &nbsp; <br />
<strong>清仓确认：</strong>
{{$info.set_discount_user}} <strong> &nbsp;清仓时间</strong>：{{$info.set_discount_time}}<br />
<strong>商品总值：</strong>
{{$info.cost_price}} <strong> &nbsp;清仓折后总价</strong>：{{$discount_price}}  &nbsp;&nbsp;<strong>差额：</strong>{{$info.cost_price-$discount_price}}  &nbsp;<strong>清仓折扣率</strong>：</strong>
{{if $info.cost_price>0}}
{{$discount_price/$info.cost_price*100}}折;
{{/if}}

</div>
</form>